<%@page import="board.BoardMyba"%>
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="./board_mybatis/board.js"></script>
</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>

<%
String part = (String)session.getAttribute("part");
boardVo.setRequest(request);

BoardMyba bb = new BoardMyba();
bb.setBoardVo(boardVo);
%>

<div id="regist_result">
	<h1>입력 결과</h1>
	<%
	if(bb.insert()){
		out.print(part + " 게시판에 글이 등록되었습니다.");
	}else{
		out.print("경고 : 오류가 발생했습니다!!");
	}
	%>
	<input type="button" value="목록" onclick="btn_list()">
</div>

</body>
</html>